﻿using TimeSpan.Views.Windows;

namespace TimeSpan.Views.Pages;

public partial class StatisticsViewModel(INavigationService navigation, IConfig<TaskRecordsConfig> config) : ObservableObject {

    [ObservableProperty]
    private TaskRecordsConfig _config = config.Config;

    [RelayCommand]
    private void ShowRecord() {
        navigation.NavigateDialog<TaskRecordWindow>();
    }
    
    [RelayCommand]
    private void ShowChart() {
        throw new NotImplementedException();
    }

}